package be.florent.brol.server;

import be.florent.brol.shared.actions.*;
import be.credoc.common.gwt.actions.server.service.AbstractActionServiceServlet;
import be.credoc.common.gwt.actions.shared.service.ActionException;
import be.florent.brol.shared.actions.GetGreetingA;
import be.florent.brol.shared.actions.GetGreetingR;

public class ActionServiceServlet extends AbstractActionServiceServlet {

	private static final long serialVersionUID = 1L;
	
	public ActionServiceServlet() {
		super();
		addHandler(this);
	}
	
	public GetGreetingR handle(GetGreetingA<GetGreetingR> action) throws ActionException {
		return new GetGreetingR("Hello, " + action.getName() + " !");
	}
	
}
